package com.xwj.back.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xwj.back.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface UserMapper extends BaseMapper<User> {

    @Update("update user set status = #{status} where id = #{id}")
    void updateStatus(@Param("id") Integer id, @Param("status") boolean status);
}
